package com.computer.spring.framework.webmvc;

import java.util.Map;

/**
 * @Description
 * @Author MagicIce
 * @Date 2020/11/22 9:40
 */
public class BYModelAndView {

    /** 页面模板名称 */
    private String viewName;
    /** 往页面传递的参数 */
    private Map<String, ?> model;

    public BYModelAndView(String viewName) {
        this(viewName, null);
    }

    public BYModelAndView(String viewName, Map<String, ?> model) {
        this.viewName = viewName;
        this.model = model;
    }

    public String getViewName() {
        return viewName;
    }

    public void setViewName(String viewName) {
        this.viewName = viewName;
    }

    public Map<String, ?> getModel() {
        return model;
    }

    public void setModel(Map<String, ?> model) {
        this.model = model;
    }
}
